// 과외 수업 보기 페이지 자바스크립트

	$(document).ready(function(){
		$("#deleteNoticeBtn").click(function(){
			//alert("test");
			confirm("게시글을 삭제하시겠습니까?");
		});
		
		$("#selectedBtn").click(function(){
			
			var urlData = "registerTLSelectedList.do";
			var dataString ="id="+$("input[name=teacherid]").val()+
							"&lessonno="+$("input[name=lessonno]").val()+
							"&listtype="+$("input[name=listtype]").val();
			
			var btn = $(this);
			$.ajax({
				type:"post",
				url:urlData,
				dataType:"json",
				data:dataString,
				success:function(jsonData){
					btn.after("<input type='button' name='moveSelectedList' value='찜리스트 보기'>").hide();
				}
			});
		});// click
		
		$("#btnSpace").on("click","input[name=moveSelectedList]", function(){
			location.href="showSelectedList.do?id="+$("input[name=teacherid]").val()+
			"&membertype="+$("input[name=membertype]").val();
		});
		/*$("input[name=moveSelectedList]").click(function(){
			location.href="showSelectedList.do?id="+$("input[name=teacherid]").val()+
							"&membertype="+$("input[name=membertype]").val();
		});*/
	});
